package com.thering.movie_servers.movies.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.thering.movie_servers.movies.mapper.TypeMapper;
import com.thering.movie_servers.movies.pojo.MovieType;
import com.thering.movie_servers.movies.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author: the_ring
 * date: 2022/6/7
 * function: TypeService
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, MovieType> implements TypeService {

    @Autowired
    TypeMapper typeMapper;

    @Override
    public List<MovieType> getTypes() {
        return typeMapper.getTypes();
    }
}
